import * as ActionTypes from './ActionTypes';
const initValues = {
    user: {
      roleId:process.env.REACT_APP_roleId,
      userId:process.env.REACT_APP_userId,
      name:process.env.REACT_APP_name,
      token:process.env.REACT_APP_token,
      deptId:process.env.REACT_APP_deptId,
      addvcd:process.env.REACT_APP_addvcd,
      rvcd:process.env.REACT_APP_rvcd,
    },

};

export default (state = initValues, action) => {
    switch (action.type) {
        case ActionTypes.menuItemChange:
            return {...state, stateMenuMain: action.key};
        case ActionTypes.subMenuItemChange:
            return {...state, stateMenuMain: action.key};
        default:
            return state;
    }
};
